package app.angm;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.TextView;

public class Main extends Activity { 
	private TextView processMessage;
	private Button processButton;
	private DatePicker myDatepicker;
	private int mYear;
    private int mMonth;
    private int mDay;
    
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        processMessage = (TextView) findViewById(R.id.processmsg);
        processButton = (Button) findViewById(R.id.processbtn);
        myDatepicker = (DatePicker) findViewById(R.id.msgdatepicker);
        
        processButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				mYear = myDatepicker.getYear();
				processMessage.setText(mYear+"");
			}
		});
        
    }
    
    
    
    
    
}